﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ProductDetails.aspx.cs" Inherits="Framework.ProductDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Js/jquery-ui-1.10.2.min.js" type="text/javascript"></script>
    <asp:Literal ID="ltrMetaOrther" runat="server"></asp:Literal>
    <meta property="og:image" content="<%= DGSFramework.ConfigPaths.Domain_Url + DGSFramework.ConfigPaths.Path_ImageProduct_Folder.Substring(2) + productDetails.ImageUrl %>" />
    <meta property="og:title" content="<%= productDetails.Title %>" />
    <meta property="og:description" content="<%= DGSFramework.Globals.TruncateString(productDetails.Summary, 1000) %>" />
    <style type="text/css">
        .uiBoxYellow
        {
            display: none !important;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#main').addClass('page-content');
            $(".uiBoxYellow").click(function () {
                $(this).remove();
            });

            $('#carousel').flexslider({
                animation: "slide",
                controlNav: false,
                animationLoop: false,
                slideshow: false,
                itemWidth: 210,
                itemMargin: 5,
                asNavFor: '#project1'
            });
        });
        $(document).ready(function () {
            //<![CDATA[
            jQuery('.shortcode_tabs').each(function (index) {
                /* GET ALL HEADERS */
                var i = 1;
                jQuery('.shortcode_tab_item_title').each(function (index) {
                    jQuery(this).addClass('it' + i); jQuery(this).attr('whatopen', 'body' + i);
                    jQuery(this).addClass('head' + i);
                    jQuery(this).parents('.shortcode_tabs').find('.all_heads_cont').append(this);
                    i++;
                });
                /* GET ALL BODY */
                var i = 1;
                jQuery('.shortcode_tab_item_body').each(function (index) {
                    jQuery(this).addClass('body' + i);
                    jQuery(this).addClass('it' + i);
                    jQuery(this).parents('.shortcode_tabs').find('.all_body_cont').append(this);
                    i++;
                });
            });

            jQuery('.shortcode_tab_item_title').click(function () {
                jQuery(this).parents('.shortcode_tabs').find('.shortcode_tab_item_body').removeClass('active');
                jQuery(this).parents('.shortcode_tabs').find('.shortcode_tab_item_title').removeClass('active');
                var whatopen = jQuery(this).attr('data-open');
                jQuery(this).parents('.shortcode_tabs').find('.' + whatopen).addClass('active');
                jQuery(this).addClass('active');
            });
            //]]
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section id="page-header">
        <div class="breadcrumbs">
            <a href="/">
                <%= DGSFramework.Globals.GetLanguage("Trang chủ", "Home", true) %></a> <span class="separator icon-double-angle-right">
                </span>
            <asp:Repeater ID="rpBreadcrumb" runat="server">
                <ItemTemplate>
                    <a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), true) + Eval("CateID").ToString())) %>"
                        title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true) %>">
                        <%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%></a>
                    <span class="separator icon-double-angle-right"></span>
                </ItemTemplate>
            </asp:Repeater>
            <span class="actual">
                <asp:Literal ID="ltrCateTitle" runat="server"></asp:Literal></span>
        </div>
        <div class="clear">
        </div>
        <div class="double-line">
        </div>
    </section>
    <!-- end page-header -->
    <div class="row-fluid">
        <section class="span8" id="main-content" style="margin: 0px;">
            <div id="project1" class="flexslider" data-speed="9999999" data-effect="slide" data-auto="false"
                data-loop="true" data-bullets="none">
                <ul class="slides no-margin no-list">
                    <asp:Repeater ID="rpProductImage" runat="server">
                        <ItemTemplate>
                            <li class="slide-holder">
                                <div class="slide">
                                    <img src="<%# DGSFramework.ConfigPaths.Path_ImageProduct_Folder.Substring(1) + Eval("ImageUrl")%>"
                                        alt="<%# !string.IsNullOrEmpty(Eval("ImageAlt").ToString()) ? Eval("ImageAlt").ToString() : Eval("Title").ToString() %>" />
                                </div>
                                <!-- end slide -->
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <asp:Panel ID="pnProductImageThumbnail" runat="server">
                <div id="carousel" class="flexslider">
                    <ul class="slides">
                        <asp:Repeater ID="rpProductImageThumbnail" runat="server">
                            <ItemTemplate>
                                <li>
                                    <img src="<%# DGSFramework.ConfigPaths.Path_ImageProduct_Folder.Substring(1) + Eval("ImageUrl")%>"
                                        alt="<%# !string.IsNullOrEmpty(Eval("ImageAlt").ToString()) ? Eval("ImageAlt").ToString() : Eval("Title").ToString() %>" />
                                    <!-- end slide -->
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </asp:Panel>
            <!-- end slider -->
            <h3>
                <asp:Literal ID="ltrProductTitle" runat="server"></asp:Literal></h3>
            <div class="clear">
            </div>
            <div class="line">
            </div>
            <h4>
                <%= DGSFramework.Globals.GetLanguage("Lượt xem", "View count", true) %>: <span>
                    <asp:Literal ID="ltrViewCount" runat="server"></asp:Literal></span></h4>
            <div class="clear">
            </div>
            <h4>
                <%= DGSFramework.Globals.GetLanguage("Giá bán", "Price", true) %>: <span>
                    <asp:Literal ID="ltrProductPrice" runat="server"></asp:Literal></span></h4>
            <h4>
                <%= DGSFramework.Globals.GetLanguage("Mô tả", "Price", true) %>: <span>
                    <asp:Literal ID="ltrSummary" runat="server"></asp:Literal>
                </span>
            </h4>
            <div class="clear">
            </div>
            <div class="span12 module_cont module_tabs" style="margin-left: 0px;">
                <div class="shortcode_tabs">
                    <div class="all_heads_cont">
                        <div data-open="body1" class="shortcode_tab_item_title it1 head1 active" whatopen="body1">
                            <%= DGSFramework.Globals.GetLanguage("Chi tiết sản phẩm", "Product details", true)%></div>
                        <div data-open="body2" class="shortcode_tab_item_title it2 head2" whatopen="body2">
                            <%= DGSFramework.Globals.GetLanguage("Tính năng sản phẩm", "Product features", true)%></div>
                    </div>
                    <div class="all_body_cont">
                        <div class="shortcode_tab_item_body body1 it1 active">
                            <div class="ip active">
                                <div class="listRelated">
                                    <ul>
                                        <asp:Repeater ID="rpRelateTop" runat="server">
                                            <ItemTemplate>
                                                <li><a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ArticleID").ToString())) %>"
                                                    title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%>">
                                                    <%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%></a>
                                                </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                    <div class="clear">
                                    </div>
                                </div>
                                <asp:Literal ID="ltrProductDescription" runat="server"></asp:Literal>
                                <div class="clear">
                                </div>
                                <div class="listRelated">
                                    <ul>
                                        <asp:Repeater ID="rpRelateBottom" runat="server">
                                            <ItemTemplate>
                                                <li><a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ArticleID").ToString())) %>"
                                                    title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%>">
                                                    <%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%></a>
                                                </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="shortcode_tab_item_body body2 it2">
                            <div class="ip active">
                                <asp:Literal ID="ltrProductFeatured" runat="server"></asp:Literal>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="addthis-plugin">
                <!-- Go to www.addthis.com/dashboard to customize your tools -->
                <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52c6e5b44ac53d9f"
                    async="async"></script>
                <!-- Go to www.addthis.com/dashboard to customize your tools -->
                <div class="addthis_sharing_toolbox">
                </div>
            </div>
            <div class="clear">
            </div>
            <div class="plugin-comment">
                <div id="divFacebook" runat="server" class="fb-comments" data-href="https://www.facebook.com/pages/Game360"
                    data-width="100%" data-numposts="5" data-colorscheme="dark">
                </div>
            </div>
            <div class="clear">
            </div>
        </section>
        <!-- end main-content -->
        <aside class="span4" id="sidebar">
            <div class="widget">
                <h4 class="title">
                    <%= DGSFramework.Globals.GetLanguage("Tìm kiếm", "Search", true) %></h4>
                <div class="double-line">
                </div>
                <div class="clear">
                </div>
                <div class="search-form">
                    <div id="search">
                        <asp:TextBox ID="txtSearch" runat="server" kl_virtual_keyboard_secure_input="on"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" class="search_button" ValidationGroup="Search"
                            OnClick="btnSearch_Click" />
                    </div>
                    <!--END search-->
                </div>
            </div>
            <div class="widget">
                <h4 class="title">
                    <asp:Literal ID="ltrParentCate" runat="server"></asp:Literal></h4>
                <div class="double-line">
                </div>
                <div class="clear">
                </div>
                <ul>
                    <asp:Repeater ID="rpCateLevel" runat="server">
                        <ItemTemplate>
                            <li><a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), true) + Eval("cateID").ToString())) %>"
                                title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true) %>">
                                <%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true) %></a>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </aside>
        <div class="clear">
        </div>
    </div>
    <!-- end row-fluid -->
    <section class="recent-works" style="padding: 25px;">
        <h3>
            <%= DGSFramework.Globals.GetLanguage("Sản phẩm liên quan", "Products related", true) %></h3>
        <div class="clear">
        </div>
        <div class="row-fluid">
            <asp:Repeater ID="rpProduct" runat="server" OnItemDataBound="rpProduct_ItemDataBound">
                <ItemTemplate>
                    <div class="row-fluid">
                        <asp:Repeater ID="rpProductSub" runat="server">
                            <ItemTemplate>
                                <div class="span3 project">
                                    <div class="post-thumbnail">
                                        <a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ProductID").ToString())) %>"
                                            title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true) %>">
                                            <div class="plus" style="left: 0px; opacity: 0; top: -30px;">
                                                +</div>
                                            <span class="hover" style="opacity: 0.55; display: none;"></span>
                                            <img alt="<%# !string.IsNullOrEmpty(Eval("ImageAlt").ToString()) ? Eval("ImageAlt").ToString() : Eval("Title").ToString() %>"
                                                style="width: 240px; height: 150px" src="<%# DGSFramework.ConfigPaths.Path_ImageProduct_Folder.Substring(1) + Eval("ImageUrl")%>">
                                        </a>
                                    </div>
                                    <!-- end post-thumbnail -->
                                    <h3 class="project-title post-title">
                                        <a href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ProductID").ToString())) %>"
                                            title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true) %>">
                                            <%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%></a></h3>
                                    <span class="georgia">
                                        <%= DGSFramework.Globals.GetLanguage("Giá", "Price", true) %>:
                                        <%# decimal.Parse(Eval("PromotionPrice").ToString()) != 0 ? (String.Format("{0:0,0}", Eval("PromotionPrice")) + " VND") : (decimal.Parse(Eval("SalePrice").ToString()) == 0 ? DGSFramework.Globals.GetLanguage("Liên hệ lấy giá", "Call to get price", true) : (String.Format("{0:0,0}", Eval("SalePrice"))) + " VND")%><br />
                                        <%= DGSFramework.Globals.GetLanguage("Mô tả", "Description", true)%>:
                                        <%# DGSFramework.Globals.TruncateString(DGSFramework.Globals.GetLanguage(Eval("Summary"), Eval("Summary_en"), true), 150)%>
                                    </span>
                                </div>
                                <!-- end project -->
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <!-- end row -->
    </section>
    <div class="clear">
    </div>
    <div class="line">
    </div>
    <!-- end recent-works -->
</asp:Content>
